package com.example.front.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class BoxCreateDto {
    private Long id;
    private long tenantId;
    @NotBlank(message = "名称不能为空")
    private String name;
    @NotNull(message = "网关不能为空")
    private long gatewayId;
    @NotNull(message = "产线不能为空")
    private long lineId;
    @NotNull(message = "盒子类型不能为空")
    private long categoryId;
    @NotNull(message = "按钮序列不能为空")
    private Integer devAddr;
//    @NotNull(message = "工艺不能为空")
    private Long craftId;
    private Long equId;
    private String event;
}
